package com.light.gulimall.order.feign;

import com.light.gulimall.order.vo.CartItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "gulimall-cart")
public interface CartRemoteServiceClient {

    /**
     * 得到用户当前选中的购物车商品信息
     * @return
     */
    @GetMapping("/currentUserCartItems")
    List<CartItem> getCurrentUserCartItems();
}
